﻿{include file="public/header" /}
<title>基本设置</title>
</head>

<body>
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span> 系统管理
		<span class="c-gray en">&gt;</span> 基本设置
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="page-container">
		<div class="form form-horizontal" id="form-article-add">
			<div id="tab-system" class="HuiTab">
				<div class="tabBar cl">
					<span>基本配置</span>
					<span>短信配置</span>
					<span>支付配置</span>
					<span>微信配置</span>
					<span>上传图片</span>
					<span>分佣配置</span>
					<span>其他配置</span>
				</div>

				<div class="tabCon">
					<form action="{:url('index/save')}" method="post" class="form-horizontal">
						<input type="hidden" name="{$name['0']}" value="{$name['0']}" />
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						网站标题：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="website-title" placeholder="" name="site_title" value="{$config0.site_title}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						网站描述：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<textarea class="textarea" type="text" rows="3" name="seo_desc">{$config0.seo_desc}</textarea>
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						网站关键字：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<textarea class="textarea" type="text" rows="3" name="seo_keyword">{$config0.seo_keyword}</textarea>
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						网站备案号：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="website-static" placeholder="" name="seo_title" value="{$config0.seo_title}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">
						<span class="c-red">*</span>
						版权信息：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="website-uploadfile" placeholder="默认为uploadfile" name="copyright" value="{$config0.copyright}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
								<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
							</div>
						</div>
					</form>

				</div>
				<div class="tabCon">
					<form action="{:url('index/save')}" method="post" class="form-horizontal">
						<input type="hidden" name="{$name['1']}" value="{$name['1']}" />
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">阿里大于APP Key：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" class="input-text" name="app_key" value="{$config1.app_key}">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">阿里大于APP Secret：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" class="input-text" name="app_secret" value="{$config1.app_secret}">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">验证码过期时间（秒）：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" class="input-text" name="verify_time" value="{$config1.verify_time}">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">短信模板：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<a class="btn btn-success" href="{:url('sms_template/index')}">前去配置短信模板</a><br>

								<a target="_blank" href="http://www.alidayu.com/">点此前往阿里大于获取短信配置</a>
							</div>
						</div>
						<div class="row cl">
							<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
								<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
							</div>
						</div>
					</form>
				</div>
				<div class="tabCon">
					<form action="{:url('index/save')}" method="post" class="form-horizontal">
						<input type="hidden" name="{$name['3']}" value="{$name['3']}" />
						<h4 style="margin: 0 20px;">支付宝手机支付</h4>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">开启支付宝：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<div class="onoffswitch">
									<input name="alipay_status" id="alipay_status" type="checkbox" {if $config3.alipay_status}checked{/if} class="onoffswitch-checkbox">
									<label class="onoffswitch-label" for="alipay_status">
                            <span class="onoffswitch-inner"></span>
                            <span class="onoffswitch-switch"></span>
                            </label>
								</div>
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">合作身份者ID：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" name="alipay_partner" value="{$config3.alipay_partner}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">收款支付宝账号：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" class="input-text" name="alipay_seller_id" value="{$config3.alipay_seller_id}">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">MD5密钥：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" class="input-text" name="alipay_key" value="{$config3.alipay_key}">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2"></label>
							<div class="formControls col-xs-8 col-sm-9">
								<a target="_blank" href="https://b.alipay.com/order/pidAndKey.htm">点此获取支付宝配置</a>
								&nbsp;&nbsp;&nbsp;
								<a target="_blank" href="{:url('index/payment/alipay')}">点此测试接口</a>
							</div>
						</div>
						<h4 style="margin: 0 20px;">微信支付</h4>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">开启微信支付：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<div class="onoffswitch">
									<input name="wxpay_status" id="wxpay_status" type="checkbox" {if $config3.wxpay_status}checked{/if} class="onoffswitch-checkbox">
									<label class="onoffswitch-label" for="wxpay_status">
                            <span class="onoffswitch-inner"></span>
                            <span class="onoffswitch-switch"></span>
                            </label>
								</div>
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">微信APPID：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="wxpay_appid" value="{$config3.wxpay_appid}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">微信AppSercet：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="wxpay_appsercet" value="{$config3.wxpay_appsercet}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">微信商户ID：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="wxpay_mchid" value="{$config3.wxpay_mchid}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">商户支付密钥：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="wxpay_key" value="{$config3.wxpay_key}" class="input-text">
							</div>
						</div>
						<h4 style="margin: 0 20px;">银联支付</h4>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">开启银联支付：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<div class="onoffswitch">
									<input name="unionpay_status" id="unionpay_status" type="checkbox" {if $config3.unionpay_status}checked{/if} class="onoffswitch-checkbox">
									<label class="onoffswitch-label" for="unionpay_status">
				                <span class="onoffswitch-inner"></span>
				                <span class="onoffswitch-switch"></span>
				            </label>
								</div>

							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">银联商户ID：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="unionpay_merId" value="{$config3.unionpay_merId}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
								<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
							</div>
						</div>
					</form>
				</div>
				<div class="tabCon">
					<form action="{:url('index/save')}" method="post" class="form-horizontal">
						<input type="hidden" name="{$name['2']}" value="{$name['2']}" />
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">公众号名称：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="we_name" value="{$config2.we_name}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">公众号原始ID：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="we_id" value="{$config2.we_id}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">微信号：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="we_no" value="{$config2.we_no}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">AppID:</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="appid" value="{$config2.appid}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">AppSecret:</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="appsecret" value="{$config2.appsecret}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">Token:</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="token" value="{$config2.token}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">EncodingAESKey：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="email-address" name="encodingaeskey" value="{$config2.encodingaeskey}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">URL服务器地址:</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" value="{$Think.config.WEB_DOMAIN}wechat" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">网页授权回调域名:</label>
							<div class="formControls col-xs-8 col-sm-9">

								<input type="text" value="{$Think.config.WEB_DOMAIN}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
								<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
							</div>
						</div>
					</form>

				</div>
				<div class="tabCon">
					上传图片
				</div>
				<div class="tabCon">
					<form action="{:url('index/save')}" method="post" class="form-horizontal">
						<input type="hidden" name="fx_config" value="fx_config" />
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">支付费率</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="pay_fee" name="pay_fee" value="{$config7.pay_fee}" class="input-text">
							</div>
						</div>
						<div style="margin-left: 20px;"><h4>会员购买100元=鼓励金分佣规则</h3></div>
						<input type="hidden" name="{$name['6']}" value="{$name['6']}" />
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">推荐会员</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="tj_user" name="tj_user" value="{$config7.tj_user}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">推荐商家 </label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="tj_agent" name="tj_agent" value="{$config7.tj_agent}" class="input-text">
							</div>
						</div>
						
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">区域服务商 </label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="tj_city" name="tj_city" value="{$config7.tj_city}" class="input-text">
							</div>
						</div>
						
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">城市运营中心 </label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="tj_province" name="tj_province" value="{$config7.tj_province}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">倍券全国运营商</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="tj_oem" name="tj_oem" value="{$config7.tj_oem}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">龙信</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="oem_pt" name="oem_pt" value="{$config7.oem_pt}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
								<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
							</div>
						</div>
					</form>
				</div>

				<div class="tabCon">
					<form action="{:url('index/save')}" method="post" class="form-horizontal">
						<input type="hidden" name="{$name['6']}" value="{$name['6']}" />
					<!--	<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">阿里大鱼key：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="dayu_key" name="dayu_key" value="" class="input-text">
							</div>
						</div>-->
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">高德地图key：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="lbs_key" name="lbs_key" value="{$config6.lbs_key}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
								<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
							</div>
						</div>
					</form>
				</div>

			</div>
		</div>
	</div>
	{include file="public/footer" /}

	<script type="text/javascript">
		$(function() {
			$('.skin-minimal input').iCheck({
				checkboxClass: 'icheckbox-blue',
				radioClass: 'iradio-blue',
				increaseArea: '20%'
			});
			$("#tab-system").Huitab({
				index: 0
			});
		});
	</script>